
from FtpLib import MyFTP
import mutagen


class OpFtpLib:
    def __init__(self,host="39.103.129.113", port=21, user="comic", passwd="b4AknLDChB7swJZM"):
        self.MF = MyFTP(host=host,port=port,user=user,passwd=passwd)
        pass
    def __del__(self):

        pass
    # 获取mp3长度
    def getMp3Len(self,fileName):
        songFile = mutagen.File(fileName)
        length = int(songFile.info.length)
        return length
    def picEncryption(self,fileName):
        pass

if __name__ == '__main__':
    OF = OpFtpLib()
    print(OF.MF.nlst())
    pass
    # path = r"T:\周杰棍\范特西\对不起.mp3"
    # length=getMp3Len(path)
    # print(length)
